import { createRouter, createWebHashHistory } from "vue-router";

const routeList = [
  {
    path: "/seller",
    name: "seller",
    component: () => import("@/view/SellerPage.vue"),
  },
  {
    path: "/trend",
    name: "trend",
    component: () => import("@/view/TrendPage.vue"),
  },
  {
    path: "/map",
    name: "map",
    component: () => import("@/view/MapPage.vue"),
  },
  {
    path: "/rank",
    name: "rank",
    component: () => import("@/view/RankPage.vue"),
  },
  {
    path: "/hotproduct",
    name: "hotproduct",
    component: () => import("@/view/HotProductPage.vue"),
  },
  {
    path: "/stock",
    name: "stock",
    component: () => import("@/view/StockPage.vue"),
  },
];

export default createRouter({
  history: createWebHashHistory(),
  routes: routeList,
});
